export default async function exportImg (el) {
  let { default: html2canvas } = await import(/* webpackChunkName: "html2canvas" */'html2canvas')
  let cvs = await html2canvas(el)

  return new Promise(function (resolve) {
    cvs.toBlob(blob => {
      resolve(blob)
    })
  })
}
